<?php
/**
 * @file:   compositio/search-block-form.tpl.php
 * @author: Kitt Hodsden - http://kitt.hodsden.org/
 *
 * Original theme designed by DesignDisease, released By-SA through SmashingMagazine
 * http://designdisease.com/blog/compositio-wordpress-theme/
 * http://www.smashingmagazine.com/2009/02/18/compositio-clean-beautiful-and-free-wordpress-theme/
 */

$search_form = preg_replace('|<label.*</label>|U', '', $search_form); // remove the label
$search_form = preg_replace('|</div>|U', '', $search_form);  // put the div on the outside
// what a pain.  there has to be an easier way to do this.
$s = t('Search');  // translate the "search" text
$search_form = preg_replace("|value=\"$s\"|", 'value=""', $search_form);  // remove the "search" from the button name
$search_form = preg_replace("|form-submit|", 'form-submit search-button', $search_form);  // add a so that the submit renders okay
print '<fieldset>' . $search_form . '</div></fieldset>';

